﻿<link href="~/Content/styles.css" rel="stylesheet">
<link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model lazada.ViewModels.AccountViewModel

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Remember Me with ASP.NET MVC</title>
    
</head>
<body>
    @*<fieldset> 
        <legend>Login</legend>*@
        @*@using(Html.BeginForm("Login","Account", FormMethod.Post))
        {
            @ViewBag.Eroor
            <table cellpadding="2" cellspacing="2">
                <tr>
                    <td>@Html.LabelFor(model => model.account.Username)</td>
                    <td>@Html.TextBoxFor(model => model.account.Username)</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(model => model.account.Password)</td>
                    <td>@Html.PasswordFor(model => model.account.Password)</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>@Html.CheckBoxFor(model => model.remember) @Html.LabelFor(model => model.remember)</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" value="Login" /></td>
                </tr>
            </table>
        }*@
        @*@using (Html.BeginForm("Login", "Account", FormMethod.Post))
        {
            @ViewBag.Eroor
            <div class="nyroModalBg" style="opacity: 0.7;"></div>
            <div id="container">

                <form>
                    
                    <label for="name">Username:</label>
                    <div>@Html.TextBoxFor(model => model.account.Username)</div>
                    

                    <label for="username">Password:</label>

                    <p>
                        <a href="#">Forgot your password?</a>
                        <div>@Html.PasswordFor(model => model.account.Password)</div>
                        

                        <div id="lower">
                            <div>&nbsp;</div>
                            <div>@Html.CheckBoxFor(model => model.remember) @Html.LabelFor(model => model.remember)</div>
                            
                            
                            <div>&nbsp;</div>
                            <div><input type="submit" value="Login" /></div>   
                           
                           

                        </div>

                </form>

            </div>

        }*@
    @*</fieldset>*@
    
    @using (Html.BeginForm("Login", "Account", FormMethod.Post))
    {
        
        <div class="nyroModalBg" style="opacity: 0.7;"></div>
        <div id="container">

            <form>

                <label for="name">Username:</label>
                <div>@Html.TextBoxFor(model => model.account.Username)</div>
                

                <label for="username">Password:</label>

                <p>
                    <a href="#">Forgot your password?</a>

                    <div>@Html.PasswordFor(model => model.account.Password)</div>

                    <div id="lower">
                        
                        <div style="margin-top:-25px;">@Html.CheckBoxFor(model => model.remember) @Html.LabelFor(model => model.remember)</div>
                        
                        <div>
                            
                            <input type="reset" value="Reset"/>
                            <input type="submit" value="Login" />
                            
                             <div style="color:red;margin-left:7px;margin-top:2px;">@ViewBag.Error</div>
                        </div>   

                    </div>

            </form>

        </div>

    }
</body>
</html>
